package com.lock;

import java.util.concurrent.BlockingDeque;
import java.util.concurrent.LinkedBlockingDeque;

/**
 * 描述:
 *
 * @author luzhongfu
 * Created by lucky on 2020-06-01 2:09 PM
 */
public class MyBlockingDeque {

    public static void main(String[] args) throws Exception{
        final BlockingDeque blockingDeque = new LinkedBlockingDeque(10);
        for (int i = 0 ; i < 15 ; i ++){
            System.out.println("添加了参数 "+ i);
            if(i == 10){
                System.out.println();
            }
            blockingDeque.putFirst(i);

        }
    }
}
